#pragma once

#include <typedef.h>

#define BUFF_FIFO_SIZE (4 * 1024)

class BuffFifo
{
public:
	BuffFifo();
	virtual ~BuffFifo();

	int Append(char* pData, uint32_t len);
	int Size(void);

	char* GetBuff() const;
	void SetBuff(char* value);

	int GetHead() const;
	void SetHead(int value);

	int GetFoot() const;
	void SetFoot(int value);

private:
	char* m_Buff;
	int m_Head;
	int m_Foot;
};